package com.china.springbootmybatis.commons;

/**
 * 错误信息
 * @author china@shanjun.wang
 */

public enum ErrorEnum {
    SUCCESS(1200,"获取数据成功"),
    FAIL(1201,"服务器异常");
    private int code;
    private String msg;

    ErrorEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
